<?php

return [
    // HTTP 请求的超时时间（秒）
    'timeout' => 5.0,

    // 短信签名
    'sign_name' => '',

    // 默认发送配置
    'default' => [
        // 网关策略
        'gateways' => 'coverBySheep',
        // 网关调用策略 
        'strategy' =>
        // 顺序调用
        \Overtrue\EasySms\Strategies\OrderStrategy::class,
        // 随机调用
        // \Overtrue\EasySms\Strategies\RandomStrategy::class

    ],
    // 可用的网关配置
    'gateways' => [
        // 日志文件
        'errorlog' => [
            'file' => app()->getRuntimePath() . "easysms.log"
        ],
        // 阿里云
        'aliyun' => [       // 阿里云短信       template + data
            'access_key_id' => 'coverBySheep',
            'access_key_secret' => 'coverBySheep',
            'sign_name' => 'coverBySheep',
            'template' => 'coverBySheep'
        ],
        // 腾讯云
        'qcloud' => [
            'sdk_app_id' => 'coverBySheep',
            'app_key' => 'coverBySheep',
            'sign_name' => 'coverBySheep',
            'template' => 'coverBySheep',
        ],
        // 华为云
        'huawei' => [
            'app_key' => 'coverBySheep',
            'app_secret' => 'coverBySheep',
            'from' => [
                'default' => '1069012345',
                'custom' => 'csms12345',
            ],
            'sign_name' => 'coverBySheep',
            'endpoint' => 'coverBySheep',
            'callback' => '', // 短信状态回调地址
            'template' => 'coverBySheep'
        ],
        // 短信宝
        'smsbao' => [
            'user'  => 'coverBySheep',
            'password'   => 'coverBySheep',
            'sign_name' => 'coverBySheep',
            'template' => []
        ]
    ]
];
